package com.awesome.spring.es.service;

import com.awesome.spring.es.entity.ContentsIndex;
import com.awesome.spring.es.repository.ContentRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @program: awesome-spring
 * @description: 内容逻辑
 * @author: Alex Wu
 * @createDate: 2025-03-03 16:00
 **/

@Service
public class ContentService {
    @Autowired
    private ContentRepository contentRepository;

    public void save(ContentsIndex contentsIndex) {
        contentRepository.save(contentsIndex);
    }
}
